package com.chenjh.soft.mvc;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FreemarkerController {
	private Logger log = Logger.getLogger(getClass());
	
	@RequestMapping(value = "/ftlTest/{name}")
	public String ftlTest(@PathVariable String name, Model model) {
		log.debug("ftlTest come in" + name);
		model.addAttribute("name", name);
		return "index";
	}
}
